import request from '../utils/request.js'

export function login(data) {
  return request.post('/user/login', data)
}

export function getUserInfo(data) {
  return request.get(`/icharger/queryMemberList.action?MemberID=${data}`)
}

export function addUser(data) {
  return request.post(`/icharger/addMember.action`, data)
}



// 获取短信验证吗
export function getVerificationCode(data) {
  return request.post(`/user/getVerificationCode`, data)
}

// 用户注册

export function registered(data) {
  return request.post(`/user/registered`, data)
}


// /user/updatePassword
// 用户忘记密码提交
export function updatePassword(data) {
  return request.post(`/user/updatePassword`, data)
}